<?php

/**

 * Page Template

 *

 * Loaded automatically by index.php?main_page=create_account.<br />

 * Displays Create Account form.

 *

 * @package templateSystem

 * @copyright Copyright 2007 Numinix Technology http://www.numinix.com
 * @copyright Copyright 2003-2006 Zen Cart Development Team

 * @copyright Portions Copyright 2003 osCommerce

 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

 * @version $Id: tpl_modules_create_account.php 82 2009-08-05 03:33:26Z numinix $

 */

?>



<?php if ($messageStack->size('create_account') > 0) echo $messageStack->output('create_account'); ?>

<div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>

<br class="clearBoth" />



<?php

  if (DISPLAY_PRIVACY_CONDITIONS == 'true') {

?>

<fieldset>

<legend><?php echo TABLE_HEADING_PRIVACY_CONDITIONS; ?></legend>

<div class="information"><?php echo TEXT_PRIVACY_CONDITIONS_DESCRIPTION;?></div>

<?php echo zen_draw_checkbox_field('privacy_conditions', '1', true, 'id="privacy"'); 
    //把隐私声明变成是默认勾选的
?>

<label class="checkboxLabel" for="privacy"><?php echo TEXT_PRIVACY_CONDITIONS_CONFIRM;?></label>

</fieldset>

<?php

  }

?>

<?php
$disable_country = true;
  if ($disable_country == true) {
    $addclass = "hiddenField";
  }
?>
<div class="<?php echo $addclass; ?>">
<label class="inputLabel" for="country_shipping"><?php echo ENTRY_COUNTRY; ?></label>
<?php echo zen_get_country_list('zone_country_id_shipping', $selected_country_shipping, 'id="country_shipping" ' . ($flag_show_pulldown_states_shipping == true ? 'onchange="update_zone_shipping(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</div>

<fieldset>

<legend><?php echo TABLE_HEADING_LOGIN_DETAILS; ?></legend>
<br class="clearBoth"/>
<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?>

<br class="clearBoth" />

<?php if (FEC_CONFIRM_EMAIL == 'true') { ?>
  <label class="inputLabel" for="email-address-confirm"><?php echo ENTRY_EMAIL_ADDRESS_CONFIRM; ?></label>
  <?php echo zen_draw_input_field('email_address_confirm', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="email-address-confirm"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?>
  <br class="clearBoth" />   
<?php } ?>


<?php

  if ($phpBB->phpBB['installed'] == true) {

?>

<label class="inputLabel" for="nickname"><?php echo ENTRY_NICK; ?></label>

<?php echo zen_draw_input_field('nick','','id="nickname"') . (zen_not_null(ENTRY_NICK_TEXT) ? '<span class="alert">' . ENTRY_NICK_TEXT . '</span>': ''); ?>

<br class="clearBoth" />

<?php

  }

?>



<label class="inputLabel" for="password-new"><?php echo ENTRY_PASSWORD; ?></label>

<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-new"') . (zen_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="alert">' . ENTRY_PASSWORD_TEXT . '</span>': ''); ?>

<br class="clearBoth" />



<label class="inputLabel" for="password-confirm"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></label>

<?php echo zen_draw_password_field('confirmation', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-confirm"') . (zen_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="alert">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?>

<br class="clearBoth" />

</fieldset>


 <!-- 
<fieldset>

<legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
<br class="clearBoth"/>
<?php

  if (ACCOUNT_NEWSLETTER_STATUS != 0) {

?>

<?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') . '<label class="checkboxLabel" for="newsletter-checkbox">' . ENTRY_NEWSLETTER . '</label>' . (zen_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="alert">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>

<br class="clearBoth" />

<?php } ?>



<?php echo zen_draw_radio_field('email_format', 'HTML', ($email_format == 'HTML' ? true : false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' .  zen_draw_radio_field('email_format', 'TEXT', ($email_format == 'TEXT' ? true : false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>

<br class="clearBoth" />

</fieldset>

-->

<?php

  if (CUSTOMERS_REFERRAL_STATUS == 2) {

?>

<fieldset>



<legend><?php echo TABLE_HEADING_REFERRAL_DETAILS; ?></legend>
<br class="clearBoth"/>
<label class="inputLabel" for="customers_referral"><?php echo ENTRY_CUSTOMERS_REFERRAL; ?></label>

<?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', '15') . ' id="customers_referral"'); ?>

<br class="clearBoth" />

</fieldset>

<?php } ?>
<?php
// BOF Captcha
if(is_object($captcha)) {
?>
<fieldset>
<legend><?php echo TITLE_CAPTCHA; ?></legend>  
<?php echo $captcha->img(); ?>
<?php echo $captcha->redraw_button(BUTTON_IMAGE_CAPTCHA_REDRAW, BUTTON_IMAGE_CAPTCHA_REDRAW_ALT); ?>
<br class="clearBoth" />
<label for="captcha"><?php echo TITLE_CAPTCHA; ?></label>
<?php echo $captcha->input_field('captcha', 'id="captcha"') . '&nbsp;<span class="alert">' . TEXT_CAPTCHA . '</span>'; ?>
<br class="clearBoth" />
</fieldset>
<?php
}
// BOF Captcha
?>